body {
  margin: 0;
  color: #333;
  font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
  background-color: #f5f5f5;
}

.content {
  display: flex;
  min-height: 100vh;
  line-height: 1.1;
  text-align: center;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
}

.app-header {
  margin-bottom: 30px;
}

.app-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #2c3e50;
}

.view-switcher {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.view-switcher button {
  padding: 10px 20px;
  border: 2px solid #3498db;
  background: white;
  color: #3498db;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.view-switcher button:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

.view-switcher button.active {
  background: #3498db;
  color: white;
}

.content p {
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.8;
  margin-bottom: 30px;
  color: #34495e;
}

/* Canvas容器样式 */
canvas {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* 矩阵演示页面样式 */
.matrix-demo {
  max-width: 1200px;
  margin: 0 auto;
}

.demo-header {
  text-align: center;
  margin-bottom: 30px;
}

.demo-header h1 {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.demo-header p {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin-bottom: 20px;
}

.demo-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.demo-tabs button {
  padding: 8px 16px;
  border: 1px solid #bdc3c7;
  background: white;
  color: #34495e;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.demo-tabs button:hover {
  background: #ecf0f1;
}

.demo-tabs button.active {
  background: #3498db;
  color: white;
  border-color: #3498db;
}

.docs-content {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.docs-section {
  margin-bottom: 30px;
}

.docs-section h2 {
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.docs-section h3 {
  color: #34495e;
  margin: 20px 0 10px 0;
}

.docs-section pre {
  background: #2c3e50;
  color: white;
  padding: 15px;
  border-radius: 4px;
  overflow-x: auto;
  font-family: "Courier New", monospace;
}

.docs-section ul,
.docs-section ol {
  margin-left: 20px;
}

.docs-section li {
  margin-bottom: 8px;
}
